package com.cloud.wyf.Entity;

public class User {
    private String id;
    private String nickname;
    private String realname;
    private String part;
    private String password;
    private Integer role;
    private Integer status;

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", nickname='" + nickname + '\'' +
                ", realname='" + realname + '\'' +
                ", part='" + part + '\'' +
                ", password='" + password + '\'' +
                ", role=" + role +
                ", status=" + status +
                '}';
    }

    public User(User other) {
        this.id = other.id;
        this.nickname = other.nickname;
        this.realname = other.realname;
        this.part = other.part;
        this.password = other.password;
        this.role = other.role;
        this.status = other.status;
    }

    public User(String id, String nickname, String realname, String part, String password, Integer role, Integer status) {
        this.id = id;
        this.nickname = nickname;
        this.realname = realname;
        this.part = part;
        this.password = password;
        this.role = role;
        this.status = status;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getPart() {
        return part;
    }

    public void setPart(String part) {
        this.part = part;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
